package com.sntk.organauthomanager.application.dto;

import com.sntk.organauthomanager.infrastructure.validation.Insert;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName: ResourceCreator
 * @author: wgchao
 * @createTime: 2020/7/21 4:28 PM
 * @Description: TODO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResourceCreator implements Serializable {
    //资源标识
    @NotBlank(message = "资源标识缺失", groups = Insert.class)
    private String mark;

    //资源名称
    @NotBlank(message = "资源名称缺失", groups = Insert.class)
    private String name;

    //资源类型
    @NotNull(message = "资源类型缺失", groups = Insert.class)
    private Integer resourceType;

    private String parentResource;

}
